package Sisth;

abstract class Person {
    public String name;
    public String sex;
    public int age;
    /**
     * 	默认定义10本书籍。（预留3本新书的buffer,用来添加书籍）
     */
    public static Book[] books = new Book[]{
            new Book("西游记", "吴承恩", 10, "名著", true),
            new Book("红楼梦", "曹雪芹", 20, "名著", true),
            new Book("三国演义", "罗贯中", 15, "名著", true),
            new Book("小茗同学", "小明", 5, "杂志", true),
            new Book("C与指针", "马老师", 35, "计算机", true),
            new Book("Java编程思想", "王老师", 55, "计算机", true),
            new Book("新世界", "陈宇", 15, "杂志", true),
            new Book("阿衰与大头妹", "阿衰", 5, "漫画", true),
            new Book("一个人就一个人", "刘同", 35, "小说", true),
            new Book("活着", "陈彤", 36, "小说", true),
            new Book(),
            new Book(),
            new Book(),
    };

    public Person(String name, String sex, int age) {
        this.age = age;
        this.name = name;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    /**
     * 	抽象类中的抽象方法
     */
    public abstract void operate();
}

